import React, { Component } from "react";
import FileUpload from "components/upload/index";
import { connect } from "react-redux";

function mapStateToProps(state) {
  return {
    loginCompany: state.login.loginCompany,
  };
}

@connect(mapStateToProps)
class ImageUploadIndex extends Component {
  render() {
    let { disabled } = this.props;
    let props = Object.assign(
      {},
      {
        showSystemTip: false,
      },
      this.props,
      {
        mode: "image",
      }
    );
    return <FileUpload {...props} />;
  }
}

export default ImageUploadIndex;
